<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>FCRE2.0--试卷详情</title>

    <link th:href="@{/assets/img/fcre.png}" rel="shortcut icon"/>
    <link th:href="@{/assets/css/bootstrap-combined.min.css}" rel="stylesheet"/>
    <link th:href="@{/assets/css/font-awesome.min.css}" rel="stylesheet"/>
    <link th:href="@{/assets/css/examstyle.css}" rel="stylesheet"/>
    <style>
    span.st1{font-size:14.0pt;font-family:SimSun;color:black;}span.tscore{font-size:12.0pt;font-family:SimSun;color:red;}span.tscore2{font-size:12.0pt;font-family:SimSun;color:blue;}span.tscore3{font-size:60.0pt;font-family:Helvetica;font-style: italic;color:red;}
    .paperheader{width:800px; border:2px; border-bottom: 2px double #080808!important;}
    .paperscore td,.paperscore th{border: 2px solid #191818; border-bottom: 2px solid #000!important;}
#div_processor1 {    border: solid 1px #ddd;    text-align: center;}#div_processor1 div {    float: left;    width: 100%;}#div_processor_fastto1 {    max-height: 500px;}#div_processor_fastto1 dt {    font-weight: bold;    background: #eee;    line-height: 25px;    padding-left: 5px;    font-size: 12px;    clear: both;    text-align: left;}#div_processor_fastto1 dd {    line-height: 25px;    padding: 5px 0;    margin: 0;    clear: both;}#div_processor1 a.finished {    background: #3c0;    color: #fff;}#div_processor1 a {    color: #000;    display: block;    float: left;    padding: 2px;    border: solid 1px #ddd;    background: #fff;    width: 25px;    margin-right: 2px;    margin-bottom: 2px;    text-decoration: none;    line-height: 20px;}#div_processor1 a.wrong {    background: #f00;    color: #fff;}#div_processor1 a:hover {    background: #fa0;}
    </style>
</head>
<body ><!-- oncontextmenu="return false" -->
<div class="container-fluid">


	<div id="mydata" class="row-fluid">
		<div class="span8">
		<div class="container">
						 
						<div class="">
									<h1>[[${paper.name}]]</h1>
									
									<br>
									<table class="paperheader" >
									  <tr>
									  <td width='500' height='41'>
									  	<span>考试时长：[[${paper.duration}]] 分钟&nbsp;&nbsp;</span>
										<span>卷面总分：[[${paper.totalscore}]]</span>
									  </td>
									  <td width='200' rowspan='3'  align='left' valign='bottom'><span class="tscore3">[[${paper.stuScore}]]</span></td>
									  </tr>
									  <tr>
									  <td>考点：&nbsp;&nbsp;[[${user.deptId}]]</td>
									  </tr>
									  <tr>
									  <td height='38'><b><span>班级： [[${user.classg}]]&nbsp;&nbsp;姓名：[[${user.userName}]]&nbsp;&nbsp; 考号：[[${user.id}]]&nbsp;&nbsp;成绩：</span></b></td>
									  </tr>
									</table><br>
									<table class="paperscore" >
										<tr >
										<th width='72' scope='col'><span class='tscore2'>题目</span></th>
										<th:block th:each="qtidmap: ${paper.qtidmap}">
										<th width='72' scope='col'><span class='tscore2' th:text="${qtidmap.value.qname}"></span></th>
										</th:block>
										</tr>
										<tr style='text-align: center;'>
										<td>得分</td>
										<th:block th:each="qtidmap: ${paper.qtidmap}">
										<td th:text="${qtidmap.value.score}"></td>
										</th:block>
										</tr>
									</table><br>
						</div>
						
					</div>
                        <div id="div_processor1">
				<div id="div_processor_fastto1">
					<dl th:each="qtidmap: ${paper.qtidmap}">
						<dt th:text="${qtidmap.value.qname}"></dt>
						<dd>
							<th:block th:each="question: ${qtidmap.value.qlist}" >
								<a th:if="${question.stuscore}==0" class="wrong" href="javascript:void(0);" th:onclick="'moveToQuestion(\''+${question.id}+'\')'" th:id="'fast_'+${question.id}" th:text="${#ids.seq(' ')}" ></a>
								<a th:unless="${question.stuscore}==0" class="finished" href="javascript:void(0);" th:onclick="'moveToQuestion(\''+${question.id}+'\')'" th:id="'fast_'+${question.id}" th:text="${#ids.seq(' ')}" ></a>
								
							</th:block>
							<div class="tm_clear"></div>
						</dd>
					</dl>
				</div>
			</div>	
			
			<div class="tm_main">
            <div class="tm_container">
			<table border="0" width="100%" cellpadding="0" style="min-width:860px;">
				<tr>
					<td valign="top">
						<form method="post" id="form_paper_detail">
						<input id="id" name="id" th:value="${id}" type="hidden">
						<input id="ksid" name="ksid" th:value="${paper.ksid}" type="hidden">
						<input id="uid" name="uid" th:value="${paper.uid}" type="hidden">
                    	<div class="tm_paper">
                            
                         
                         	<div class="tm_paper_body" th:each="qtidmap: ${paper.qtidmap}">
                         		<div class="tm_paper_section"><!-- 一种题型 -->
                         			
                                	<h1  style="color:blue;" th:text="${qtidmap.value.qname}+'（'+${qtidmap.value.qscore}+'分）'"></h1>
                                	<!-- 每一道题 -->
                                	<th:block th:each="question: ${qtidmap.value.qlist}" >
                                		<span class="span-quick-nav" th:id="'quick-Q-'+${question.id}"></span>
                                		<table border="0" cellpadding="0" cellspacing="0" class="tm_paper_question" style="table-layout:fixed;">
                                    	<thead>
                                        	<tr style="background-color: #efebeb;">
                                            	<th valign="top" class="tm_question_lineheight"><cite th:text="${#ids.seq('')}"></cite></th>
                                                <td class="tm_question_lineheight" th:utext="${question.name}"></td>
                                                <td class="tom_exam_score">
                                                <img th:if="${question.stuscore}==0" th:src="@{/assets/img/error.png}" />
                                                <img th:unless="${question.stuscore}==0" th:src="@{/assets/img/success.png}" />
                                                </td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        	<tr>
                                            	<td colspan="3">
                                            	<ul th:if="${question.qtid}==1">
                                            		<li>
                                            			<label style='margin-left: 2px;' th:utext="'A.&nbsp;'+ ${question.ansA}">
                                            			</label>                                            			
                                            		</li>
                                            		<li>
                                            			<label style='margin-left: 2px;' th:utext="'B.&nbsp;'+ ${question.ansB}">
                                            			</label>
                                            		</li>
                                            		<li>
                                            			<label style='margin-left: 2px;' th:utext="'C.&nbsp;'+ ${question.ansC}">
                                            			</label>
                                            		</li>
                                            		<li>
                                            			<label style='margin-left: 2px;' th:utext="'D.&nbsp;'+ ${question.ansD}">
                                            			</label>
                                            		</li>
                                            		<li><span class=tscore>参考答案：[[${question.qans}]]</span></li>
                                            		<li><span class=tscore2>考生答案：[[${question.stuans}]]</span></li>
                                            	</ul>
                                            	<ul th:if="${question.qtid}==2">
                                            		<li>
                                            			<label style='margin-left: 2px;' th:utext="'A.&nbsp;'+ ${question.ansA}">
                                            			</label>
                                            		</li>
                                            		<li>
                                            			<label style='margin-left: 2px;' th:utext="'B.&nbsp;'+ ${question.ansB}">
                                            			</label>
                                            		</li>
                                            		<li>
                                            			<label style='margin-left: 2px;' th:utext="'C.&nbsp;'+ ${question.ansC}">
                                            			</label>
                                            		</li>
                                            		<li>
                                            			<label style='margin-left: 2px;' th:utext="'D.&nbsp;'+ ${question.ansD}"></span>
                                            			</label>
                                            		</li>
                                            		<li><span class=tscore>参考答案：[[${question.qans}]]</span></li>
                                            		<li><span class=tscore2>考生答案：[[${question.stuans}]]</span></li>
                                            	</ul>
                                            	<ul th:if="${question.qtid}==4">
                                            		<li>
                                            			<label style='margin-left: 2px;' th:utext="'A.&nbsp;'+ ${question.ansA}">
                                            			</label>
                                            		</li>
                                            		<li>
                                            			<label style='margin-left: 2px;' th:utext="'B.&nbsp;'+ ${question.ansB}">
                                            			</label>
                                            		</li>
                                            		<li><span class=tscore>参考答案：[[${question.qans}]]</span></li>
                                            		<li><span class=tscore2>考生答案：[[${question.stuans}]]</span></li>
                                            	</ul>
                                            	<ul th:if="${question.qtid}>=18 and ${question.qtid}<=20">
                                            		<li><span class=tscore2 th:utext="${question.stuans}"></span>
                                            		</li>
                                            	</ul>
                                            	</td>
                                            </tr>
                                        </tbody>
                                    	</table>
                                	</th:block>
                                	
                                </div>
                         	</div>
                         </div>
                         </form>
                     </td>
                 </tr>
               </table>
            </div>                            
            </div>		
		</div>

	</div>
</div>


</body>
</html>
